<script setup>
import {ref} from "vue";
const num = ref(0);
const clikeMe = () => {
    num.value++;
}

const reset = () => {
    num.value = 0
}

const rdnum = ( ) => {
    num.value = Math.floor(Math.random()*101)
}
</script>
<template>
    <button id = "me" @click="clikeMe">点击我</button>
    <button id = "me" @click="reset">reset</button>
    <button id = "me" @click="rdnum">rondom</button>
<label for="me">{{ num }}</label>

</template>
<style scoped></style>